config BR2_PACKAGE_C_CAPNPROTO
	bool "c-capnproto"
	depends on BR2_USE_MMU # capnproto
	depends on BR2_HOST_GCC_AT_LEAST_4_8 # capnproto
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # capnproto
	depends on BR2_INSTALL_LIBSTDCPP # capnproto
	depends on BR2_TOOLCHAIN_HAS_THREADS # capnproto
	depends on BR2_TOOLCHAIN_HAS_ATOMIC # capnproto
	select BR2_PACKAGE_CAPNPROTO
	help
	  A C plugin for Cap'n Proto. Generates the code generator
	  plugin for C. Requires regular Cap'n Proto and only
	  provides serialization (no RPC).

comment "c-capnproto needs host and target gcc >= 4.8 w/ C++, threads, atomic"
	depends on BR2_USE_MMU
	depends on!BR2_HOST_GCC_AT_LEAST_4_8 || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
		!BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_HAS_ATOMIC
